package inno.treeRepro;

import java.util.Comparator;

public class ChromosomeComparator implements Comparator<Chromosome>{
	public int compare(Chromosome chromo1, Chromosome chromo2){ 
		if (chromo1.getMyFitness()>chromo2.getMyFitness()){
			return 1;
		}
		else if (chromo1.getMyFitness()<chromo2.getMyFitness()){
			return -1;
		}
		else{
			return 0;
		}
	}
}
